Use the getId method to tidy up simple call to domid.
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Sun, 27 Nov 2005 01:02:36 +0000 (01:02 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Sun, 27 Nov 2005 01:02:36 +0000 (01:02 +0000)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/xm-test/lib/XmTestLib/XenDomain.py

index 7bacf2b68321a23c18659bdf3f471ca6accb75b5..0b07ae98352c73d980b15d9fff2f4b5729511385 100644 (file)
@@ -89,7 +89,7 @@ class XenDomain:
         ret, output = traceCommand(commandLine);
 
         try:
-            self.domID = int(domid(self.domName));
+            self.domID = self.getId()
         except:
             self.domID = -1;